---------这里需要改成自己的难度---------------
Nandu = 3 --难度，1是普通，2是史诗，3是传说



-----------下面的一般不用改------------------
BiLi = { 16, 9 } --屏幕比例
StartZuobiao = { 0.885, 0.116 } --主菜单点击开启泰坦之旅 坐标
Nandu1Zuobiao = { 0.817, 0.203 } --普通难度坐标
Nandu2Zuobiao = { 0.870, 0.203 } --史诗难度坐标
Nandu3Zuobiao = { 0.923, 0.203 } --传说难度坐标
---全局设置---
--启用鼠标按钮事件
EnablePrimaryMouseButtonEvents(true)

--主菜单点击开启泰坦之旅
function Start()
	MoveMouseToVirtual(StartZuobiao[1] * 65535 * 16 * BiLi[2] / 9 / BiLi[1], StartZuobiao[2] * 65535)
	Sleep(100)
	PressAndReleaseMouseButton(1)
	Sleep(1)
end

--选择难度并进入游戏
function Jinru()
	if (Nandu == 1) then
		MoveMouseToVirtual(Nandu1Zuobiao[1] * 65535 * 16 * BiLi[2] / 9 / BiLi[1], Nandu1Zuobiao[2] * 65535)
	end
	if (Nandu == 2) then
		MoveMouseToVirtual(Nandu2Zuobiao[1] * 65535 * 16 * BiLi[2] / 9 / BiLi[1], Nandu2Zuobiao[2] * 65535)
	end
	if (Nandu == 3) then
		MoveMouseToVirtual(Nandu3Zuobiao[1] * 65535 * 16 * BiLi[2] / 9 / BiLi[1], Nandu3Zuobiao[2] * 65535)
	end
	Sleep(100)
	PressAndReleaseMouseButton(1)
	Sleep(50)
	PressAndReleaseKey("Enter")
	Sleep(1)
end

---主程序---
function OnEvent(event, arg)
	--主菜单点击开启泰坦之旅
	if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then
		Start()
	end
	--选择难度并进入游戏
	if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then
		Jinru()
	end
end